﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="StateInfo.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   The state info.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System;

namespace ActorModel.Engine.Core
{
    /// <summary>
    /// The state info.
    /// </summary>
    /// <typeparam name="TState">
    /// </typeparam>
    [Serializable]
    public class StateInfo<TState>
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="StateInfo{TState}"/> class.
        /// </summary>
        /// <param name="state">
        /// The state.
        /// </param>
        /// <param name="priority">
        /// The priority.
        /// </param>
        public StateInfo(TState state, StatePriority priority)
        {
            this.Priority = priority;
            this.State = state;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the priority.
        /// </summary>
        public StatePriority Priority { get; private set; }

        /// <summary>
        ///     Gets the state.
        /// </summary>
        public TState State { get; private set; }

        #endregion
    }
}